package com.xxx.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxx.demo.entity.News;

import java.util.List;

/**
* @author 562702
* @description 针对表【news(新闻表)】的数据库操作Service
* @createDate 2023-03-20 14:24:02
*/
public interface NewsService extends IService<News> {

    List<News> queryNews();

    int saveNews(News news);

    int removeNewById(Long id);

    int deleteNews(Long id);

//    int updateNews(News news);

    News queryNewsById(Long id);

    IPage<News> selectNewsPage(Integer pageNo,Integer pageSize,News news);

    void updateNews(News news);

    List<News> selectAllNews();
}
